def f():
    a = [[], []]

    def f2():
        a[0].append(1)
        a[1].append(2)
        print(a)
        print(id(a[0]))

    return f2


def main() -> None:
    g1 = f()
    g2 = f()

    g1()
    g1()
    g1()

    g2()
    g2()
    g2()


if __name__ == "__main__":
    main()
